<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统设置</title>
<link href="html/css/css.css" rel="stylesheet" type="text/css" />
<script Language="JavaScript" src="html/js/myjs.js"></script>
<script Language="JavaScript" src="html/js/functions.js"></script>

</head>

<body>


<form action="" method="post" enctype="multipart/form-data" name="form" id="form" style="margin:0px">
<div class="form_box">
	<div class="header">
    <img src="html/images/application_form.gif" width="16" height="16" align="absmiddle" />&nbsp;基本设置</div>
    <div class="box">
    	<div class="text">
    		平台网站名称:
    	</div>
        <div class="input">
    		<input name="SiteName" type="text" id="SiteName" value="[@htmlspecialchars($SysInfo.SiteName)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
    <div class="box">
    	<div class="text">
    		系统安装网址:
    	</div>
        <div class="input">
    		<input name="SiteUrl" type="text" id="SiteUrl" value="[@htmlspecialchars($SysInfo.SiteUrl)]" />
                    <br /> <img src="html/images/information.gif" width="16" height="16" align="absmiddle" />  网站生成以后的链接地址 
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    		生成文件存放:
    	</div>
        <div class="input">
    		<input name="PublishPath" type="text" id="PublishPath" value="[@htmlspecialchars($SysInfo.PublishPath)]" />
          <br /> <img src="html/images/information.gif" width="16" height="16" align="absmiddle" />  HTML文件生成的相对地址 
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    		网站模板位置:
    	</div>
        <div class="input">
    		<input name="TemplatePath" type="text" id="TemplatePath" value="[@htmlspecialchars($SysInfo.TemplatePath)]" />
       	</div>
        <div style="clear:both"></div>
    </div>


    <div class="box">
    	<div class="text">
    		数据库文件存放:
    	</div>
        <div class="input">
    		<input name="BackPath" type="text" id="BackPath" value="[@htmlspecialchars($SysInfo.BackPath)]" />
       	</div>
        <div style="clear:both"></div>
    </div>

        

    
        <div class="box">
    	<div class="text">
    		评论审核方式:
    	</div>
        <div class="input">
    		<select name="SaveType" id="SaveType">
                <option value="1">直接通过</option>
                <option value="2">审核通过</option>
                <option value="-1">暂不开放</option>
            </select>
            <script language="javascript">$.Input.getSelect('SaveType',[$SysInfo.SaveType],1);</script>
       	</div>
        <div style="clear:both"></div>
    </div>

        <div class="box">
    	<div class="text">
    		是否开启REWRITE:
    	</div>
        <div class="input">
         <if $SysInfo.Rewrite == '1'>
    		<input type="radio" name="Rewrite" value="1" checked="checked" /> <strong>开启</strong>          
            <input type="radio" name="Rewrite" value="-1" /> 关闭
         <else>
        	<input type="radio" name="Rewrite" value="1" /> 开启          
            <input type="radio" name="Rewrite" value="-1" checked="checked"/> <strong>关闭</strong>
         </if>
       	</div>
        <div style="clear:both"></div>
    </div>
    
        <div class="box">
    	<div class="text">
    		是否开启缓存:
    	</div>
        <div class="input">

        <if $SysInfo.Cache == '1'>
        	<input type="radio" name="Cache" value="1" checked="checked" onclick="$('hidden1').style.display=''"/> <strong>开启</strong>          
            <input type="radio" name="Cache" value="-1" onclick="$('hidden1').style.display='none'"/> 关闭
       	<else>
        	<input type="radio" name="Cache" value="1" checked="checked" onclick="$('hidden1').style.display=''"/> 开启          
            <input type="radio" name="Cache" value="-1" onclick="$('hidden1').style.display='none'" checked="checked"/> <strong>关闭</strong>
        </if>
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box" id="hidden1">
    	<div class="text">
    		缓存时间（秒）:
    	</div>
        <div class="input">
    		<input name="CacheTime" type="text" id="CacheTime" value="[@htmlspecialchars($SysInfo.CacheTime)]" /> 
       	</div>
        <div style="clear:both"></div>
    </div>
    
    
    <div class="box">
      <div class="text" style="font-size:14px;">
    		<strong><img src="html/images/application_form.gif" width="16" height="16" align="absmiddle" />&nbsp;上传资源设置</strong>
    	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    		上传资源存放:
    	</div>
        <div class="input">
    		<input name="UploadPath" type="text" id="UploadPath" value="[@htmlspecialchars($SysInfo.UploadPath)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    		资源大小限制（M）:
    	</div>
        <div class="input">
    		<input name="FileSize" type="text" id="FileSize" value="[@htmlspecialchars($SysInfo.FileSize)]"  style="width:50px;" /> Ｍ
        </div>
        <div style="clear:both"></div>
    </div>
    
    
	<div class="box">
    	<div class="text">
    		资源类型设置:
    	</div>
        <div class="input">
        <textarea name="FileType" style="height:100px;">[@htmlspecialchars($SysInfo.FileType)]</textarea>
       	</div>
        <div style="clear:both"></div>
    </div>

        <div class="box">
    	<div class="text">
    		启用图片水印:
    	</div>
        <div class="input">
         <if $SysInfo.WaterMark == '1'>
    		<input type="radio" name="WaterMark" value="1" checked="checked" onclick="$('hidden2').style.display=''"/> <strong>开启</strong>          
            <input type="radio" name="WaterMark" value="-1" onclick="$('hidden2').style.display='none'"/> 关闭
         <else>
        	<input type="radio" name="WaterMark" value="1" onclick="$('hidden2').style.display=''"/> 开启          
            <input type="radio" name="WaterMark" value="-1" checked="checked" onclick="$('hidden2').style.display='none'"/> <strong>关闭</strong>
         </if>
       	</div>
        <div style="clear:both"></div>
    </div>
    
    
    <div id="hidden2">
    
    	<div class="box">
    	<div class="text">
    		水印图片路径:
    	</div>
        <div class="input">
        <input name="WatermarkImgPath" type="text" id="WatermarkImgPath" value="[@htmlspecialchars($SysInfo.WatermarkImgPath)]" />
       	</div>
        <div style="clear:both"></div>
    </div>

        
     <div class="box">
    	<div class="text">
    		水印生成位置:
    	</div>
        <div class="input">
        		<select name="WatermarkPosition" value="[$SysInfo.WatermarkPosition]">
				<option value="-1">随机位置</option>
				<option value="1">顶端居左</option>
				<option value="2">顶端居中</option>
				<option value="3">顶端居右</option>
				<option value="4">中部居左</option>
				<option value="5">中部居中</option>
				<option value="6">中部居右</option>
				<option value="7">底端居左</option>
				<option value="8">底端居中</option>
				<option value="9">底端居右</option>
               </select>
               <script language="javascript">$.Input.getSelect('WatermarkPosition',[$SysInfo.WatermarkPosition],1);</script>
       	</div>
        <div style="clear:both"></div>
        
        
    </div>

    </div>
    
    <div class="box">
      <div class="text" style="font-size:14px;">
    		<strong><img src="html/images/application_form.gif" width="16" height="16" align="absmiddle" />&nbsp;显示参数设置</strong>
    	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    		列表信息默认条数:
    	</div>
        <div class="input">
    		<input name="PageNum" type="text" id="PageNum" value="[@htmlspecialchars($SysInfo.PageNum)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    		搜索结果默认条数:
    	</div>
        <div class="input">
    		<input name="SearchNum" type="text" id="SearchNum" value="[@htmlspecialchars($SysInfo.SearchNum)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
   
   <div class="box">
    	<div class="text">
    		最后浏览显示条数:
    	</div>
        <div class="input">
    		<input name="MovieNum" type="text" id="MovieNum" value="[@htmlspecialchars($SysInfo.MovieNum)]" />
            <br><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> 由于COOKIE的限制，最大为17条
       	</div>
        <div style="clear:both"></div>
    </div>
    
</div>
<div class="form_box_bottom">
<input type="image" src="html/images/submit.gif" align="absmiddle" border="0" title="保存" />
<a href="javascript:history.go(-1);" onclick=""><img src="html/images/cancel.gif" align="absmiddle" border="0" title="返回上一级" /></a>
</div>
</form>


<script type="text/javascript">
<if $SysInfo.Cache != '1'>
$('hidden1').style.display='none';
</if>

<if $SysInfo.WaterMark != '1'>
$('hidden2').style.display='none';
</if>

</script>
<if $Msg>
	<div id="msg"><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> [$Msg] <a href="javascript:close_alert_msg_box()">[ 关闭 ]</a></div>
</if>
</body>
</html>
